<?php
require('config.php');

        $goods_id=$_REQUEST['goods_id'];
		$sql="SELECT a.goodsScore,a.content,u.userName,a.anonymity,a.createTime FROM ".$oto."_goods_appraises as a,".$oto."_users as u where a.goodsId='{$goods_id}' and a.isDel='0' and a.isShow='1' and a.userId=u.userId order by a.createTime DESC ";
		$result=$db->query($sql);
		while($row=$result->fetch_assoc()){
			$person_info[]=$row;//将取得的所有数据赋值给person_info数组
		}
		if(isset($person_info)) echo json_encode($person_info);
		else echo '[]';
?>